﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MoneyManagerNET.Presentation.ViewModel.Base;

namespace Mvvm.ViewModel
{
    public class HyerarchicalNavigateViewModel:ListViewModel
    {
        Stack<ViewModelBase> CurrentPath;


        ViewModelBase _destination;
        public ViewModelBase Destination{
            get { return _destination; }
            set { 
            }
        }

        ViewModelBase _location;
        void MoveUp() {
            var parent=CurrentPath.Pop();

            var list = parent as ListViewModel;
            if (list != null)
                list.Selected = null;

            _location = parent;
        }


    }
}
